Class Load<TValue, TValueType, TReadValue>
Base class for load instructions.
Assembly: WaaS.Core.dll
Declaration
public abstract class Load<TValue, TValueType, TReadValue> : Instruction where TValue : unmanaged where TValueType : struct, IValueType<TValue> where TReadValue : unmanaged
Inheritance: System.Object
-> WaaS.Models.Instruction
Derived:
Expand
Properties
Align
View Source
Declaration
public uint Align { get; }
Offset
View Source
Declaration
public uint Offset { get; }
Methods
Convert(in TReadValue)
View Source
Declaration
protected abstract TValue Convert(in TReadValue value)
Returns
<TValue>
Parameters
Type | Name |
---|---|
<TReadValue> | value |
Execute(WasmStackFrame)
Executes the instruction.
View Source
Declaration
public override void Execute(WasmStackFrame current)
Parameters
Type | Name |
---|---|
WaaS.Runtime.WasmStackFrame | current |
Validate(in ValidationContext)
Validates the instruction.
View Source
Declaration
public override void Validate(in ValidationContext context)
Parameters
Type | Name |
---|---|
WaaS.Models.ValidationContext | context |
PreValidateStackState(in ValidationContext)
Get the number of values to pop and push from the stack to validate stack depth.
View Source
Declaration
public override (uint popCount, uint pushCount) PreValidateStackState(in ValidationContext context)
Returns
System.ValueTuple<System.UInt32,System.UInt32>
Parameters
Type | Name |
---|---|
WaaS.Models.ValidationContext | context |
ValidateStackState(in ValidationContext, ref ValidationBlockStackState)
Simulates stack operations to validate the stack state.
View Source
Declaration
public override void ValidateStackState(in ValidationContext context, ref ValidationBlockStackState stackState)
Parameters
Type | Name |
---|---|
WaaS.Models.ValidationContext | context |
WaaS.Models.ValidationBlockStackState | stackState |